package com.demo.spring.annoinit;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements TeacherService {
	
	public TeacherServiceImpl(){
		System.out.println("TeacherService constructor");
	}
	
	@PostConstruct
	public void init(){
		System.out.println("TeacherService init");
	}

	@Override
	public void teach() {
		System.out.println("teacher student!");
	}

}
